﻿@{
    ViewBag.Title = "关键词管理";
    ViewBag.MenuIndex = 2;
}

@model IPagedList<Xwork.SEO.SeoKeyword>
<div class="ny">
    <div class="ny_kb9"></div>
    <table id="myTable" style="width:990px; margin-bottom:10px;" class="tablesorter" border="0" cellpadding="0" cellspacing="0">
    	<thead>
        	<tr class="even">
                <th width="19%"><h3>站点</h3></th>
                <th width="12%"><h3>关键词</h3></th>
                <th width="10%" class="header"><h3>本月消费</h3></th>
                <th width="9%" class="header"><h3>累计消费</h3></th>
                <th><h3>价格</h3></th>
                <th width="9%" class="header"><h3>创建日期</h3></th>
                <th><h3>状态</h3></th>
                <th width="9%" class="header"><h3>查看</h3></th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                @DateTime.Now.Month
                <tr class="even">
                <td><a target="_blank" href="@("http://"+item.SeoSite.SiteUrl)">@item.SeoSite.SiteUrl</a></td>
                <td>@item.KeywordName</td>
                <td>@item.MonthAmount</td>
                <td>@item.ConsumeAmount</td>
                <td>
                    @if (item.KeywordPrices.Count > 0)
                    {
                        foreach (var pr in item.KeywordPrices)
                        {
                        <span>@(pr.PageIndex):@((int)pr.Price)</span>
                        }
                    }else
                    {
                        <span>-</span>
                    }
                </td>
                <td>@(item.IsAuthenticated ? "未审核" : "已审核")</td>
                <td>@item.CreateTime.ToString("yyyy-MM-dd")</td>
                <td><a href="@Url.Action("seologs", "report", new { keywordid = item.ID })">查看明细</a></td>
                </tr>
            }
        </tbody>
    </table>
    <div style="text-align:right;">
        @Html.PagedListPager(Model, p => Url.Action("userlist", new { pageindex = p }))
    </div>
</div>

